package com.foreknow.demo8;

public class B extends A {
    @Override
    public boolean login(String username, String password) {
        if (username.equals("tom") && password.equals("123456")){
            return true;
        }
        return false;
    }
}
